﻿using System.Linq;
using ASPItalia.ModelVirtualCasting.ObjectModel;
using ASPItalia.ModelVirtualCasting.Cache.Repositories;
using System.Collections.Generic;

namespace ASPItalia.ModelVirtualCasting.Common
{
	public interface INewsRepository : IRepository<INewsRepository, News>
    {
		[CacheThis("last-news", 60)]
		List<NewsDTO> GetLastNewsDTO(int number);

        News GetByID(int id);
    }
}
